﻿namespace CYPlayer.ProjectViews
{
    using System.Windows;
    using System.Windows.Controls;

    public partial class MediaLibView : UserControl
    {
        private PlayerWindow parent;

        public MediaLibView()
        {
            InitializeComponent();
        }

        private PlayerWindow WindowParent
        {
            get
            {
                return this.parent ?? (this.parent = (PlayerWindow)Window.GetWindow(this));
            }
        }

        private void MnWindowBtnClick(object sender, RoutedEventArgs e)
        {
            this.WindowParent.transitionConrol.ShowPage(
                null,
                "PlayerView");
        }
    }
}
